

package cn.xd.base.persistence.mps.impl;

import cn.xd.base.basic.type.AdminRoleId;
import cn.xd.base.persistence.dos.AdminOrgRoleDO;
import cn.xd.base.persistence.mapper.AdminOrgRoleMapper;
import cn.xd.base.persistence.mps.AdminOrgRoleMpService;
import cn.xd.core.response.CollectResult;
import cn.xd.core.service.impl.BasicMpServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class AdminOrgRoleMpServiceImpl extends BasicMpServiceImpl<AdminOrgRoleMapper, AdminOrgRoleDO> implements AdminOrgRoleMpService {

    @Override
    public CollectResult<AdminOrgRoleDO> getAdminOrgRole(AdminRoleId roleId) {
        return CollectResult.of(lambdaQuery().eq(AdminOrgRoleDO::getRoleId, roleId.getValue()).list());
    }
}
